<?php
require('../action/db.php');
require('/usr/local/lib/php/Smarty/Smarty.class.php');
$templates = "";
if ($_GET['status']=='wait_verify'){
	$templates =  "video_verify.tpl";
}else{
	$templates = "video_status.tpl";
}
$cmd = "select MOVIE_QUEUE.id,SPIDER_PRODUCT.id as spider_id,video_url,product_name from MOVIE_QUEUE,SPIDER_PRODUCT  where video_status='".$_GET['status']."' and SPIDER_PRODUCT.id=MOVIE_QUEUE.video_product_id and SPIDER_PRODUCT.id='".$_GET['product_id']."'";
$rs = $db->Execute($cmd);
$video_wait_list = $rs->getRows();
//var_dump($video_wait_list);

 $smarty = new Smarty();

  $smarty->setTemplateDir('../smarty/templates');
  $smarty->setCompileDir('../smarty/templates_c');
  $smarty->setCacheDir('../smarty/cache');
  $smarty->setConfigDir('../smarty/configs');

  $smarty->assign('video_wait_list', $video_wait_list);

  $smarty->display($templates);
?>
